package com.example.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.user.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FavoriteMapper extends BaseMapper<Product> {


    List<Product> selectByUserId(@Param("userId") Integer userId);

    int cancelCollectionByProductId(@Param("productId") int productId);
}
